package com.luke.exercise.reflect;

import java.lang.annotation.Target;

import com.luke.exercise.annotation.ReflectionAnnotation;


public class ReflectDemo {

    public static void main(String[] args) {
        Class<ReflectionAnnotation> clazz = ReflectionAnnotation.class;
        System.out.println(clazz);
        System.out.println(clazz.isPrimitive());
        System.out.println(clazz.isArray());
        System.out.println(clazz.isAnnotation());
        System.out.println(clazz.isEnum());
        System.out.println(clazz.isAnonymousClass());
        System.out.println(clazz.isAnnotationPresent(Target.class));
        
        System.out.println(clazz.getName());
        System.out.println(clazz.getPackage());
        System.out.println(clazz.getSimpleName());
        System.out.println(clazz.getModifiers());
        System.out.println(clazz.getDeclaredClasses());
        System.out.println(clazz.getDeclaringClass());
        
    }
}
